<%--
  Created by IntelliJ IDEA.
  User: 12994
  Date: 2022/4/15
  Time: 21:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>商品详情页面</title>
</head>
<body>
<h2 style="font-max-size: xxx-large; color:orange"  align="center" >
<%--    <jsp:forward page = "/WEB-INF/shopping.jsp" />--%>
    <a href= "shopping.jsp" />>返回购物</a>
</h2>
<table cellspacing="0" align="center" border="1" width="800px" >

    <tr style="color: red">
        <th>商品编号</th>
        <th>商品名称</th>
        <th>商品价格</th>
        <th>商品介绍</th>
        <th>查看详情</th>
    </tr>
    <c:forEach items="${listshop}" var="goods">
        <tr align="center" style="color:purple">
            <td>${goods.id}</td>
            <td>${goods.name}</td>
            <td>${goods.price}</td>
            <td>${goods.about}</td>
            <td><a href="cart?id=${goods.id}" style="color: mediumblue">加入购物车</a></td>
        </tr>
    </c:forEach>

</table>

</body>
</html>
